Dynomotion

Group: DynoMotion Message: 13095 From: shannonjdavenport Date: 4/6/2016
Subject: “Not Responding” KmotionCNC.

Hi Tom,  

We’re having an intermittent  problem that we’ve been unable to solve.  We are getting an “Not Responding” message in the title bar in KmotionCNC. Here the facts.


Windows 7 on an industrial AMD 64bit platform with integrated touch screen.

Logitech F710 Gamepad.

JoytoKey running for Gamepad to keyboard mapping.

The machine is an X,Y, Z1, Z2 waterjet. ( Z’s are not part of the coordinated motion)

It occurs both while running Gcode and sitting idle.

If Gcode is running motion stops but jet stays on(spindle output) and often ruins the part.

Very random, the machine may operate for several hours or 5 minutes between failures.

We were running 4.33 now 4.34a …no change.

Kflop was powered by USB we changed to external PS …no change.

We are unable to open Kmotion.exe during unresponsive KmotionCNC.

We replaced and rerouted USB cable …no change

If we disable/enable or unplug/replug USB the “Not Responding” goes away and we can resume cutting.

 

We thought it was a USB problem but the C program below is running and still fully functional while the “Not Responding” message is present.

Any ideas?

Thank you, Shannon


#include "KMotionDef.h"

main()

{

               int resultz;

               double z1;

               double z2;

               int zcur1;

               int zcur2;

              

               for (;;) { // loop forever

//----Get logitech game controller  Z move data from a file created in VB6 app----

                              FILE *fz=fopen("c:\\Temp1\\kflop_z_move.txt","rt");

                              Delay_sec(.011);

                              if(fz!=NULL)

                              {             

                                             //printf("e");

                                             resultz=fscanf(fz,"%lf\n",&z1);

                                             resultz=fscanf(fz,"%lf",&z2);

                                             //Jog Z1

                                             if (z1 != zcur1){

                                             Jog(4,z1);

                                             }

                                             //Jog Z2

                                             if (z2 != zcur2){

                                             Jog(3,z2);

                                             }

                                             fclose(fz);

                                             if (fz != NULL){

                                             fz = NULL;

                                             }

                                             zcur1 = z1;

                                             zcur2 = z2;

                              }

                              WaitNextTimeSlice();

               }             

}


Group: DynoMotion Message: 13109 From: calebdavenport Date: 4/7/2016
Subject: Re: “Not Responding” KmotionCNC.
Hi Tom,
I am working on this as well.

#1- we are using JoytoKey so we can map the controller buttons differently in a more intuitive way for our machine. With JoytoKey, it is doing exactly the same thing as using Keyboard Jog, so I dont imagine that could be causing any problems?
#2- We spent a fair amount of time trying to find a way to control an axis (not in coordinated motion) while running Gcode. I think I posted a topic about it too a few weeks ago. Using the read/write file works great, but it seems like the persist variable may be a better way. Do you have any examples of how to send those to KFLOP from a VB program?

Currently, we have all programs stopped. Will wait and see if the problem continues and let you know.

Thanks for the help
Caleb

Group: DynoMotion Message: 13110 From: shannonjdavenport Date: 4/7/2016
Subject: Re: “Not Responding” KmotionCNC.
More info... It was locked up again this morning.  force closed kmotioncnc and reopened.  still unresponsive.  force closed kmotionserver.exe, opened kmotioncnc everything worked. 

A couple of weeks ago I spent a few unsuccessful hours trying to figure out how to use R/W persist variables with VB6.  Maybe someone has done this and could steer an old programmer in the right direction?
Thanks, Shannon